package com.mapper;

import com.entity.Student;
import com.entity.StudentExample;
import java.util.List;
import java.util.Map;

import com.page.PageInfo;
import org.apache.ibatis.annotations.Param;

public interface StudentMapper {
    long countByExample(StudentExample example);

    int deleteByExample(StudentExample example);

    int deleteByPrimaryKey(String sno);

    int insert(Student record);

    int insertSelective(Student record);

    List<Student> getAll();

    List<Student> getStudentsByPage(Map<String,Object> map);


    List<Student> selectByExample(StudentExample example);

    Student selectByPrimaryKey(String sno);
//根据主键查询出学生 但是带上关联实体
    Student selectStudentWithAll(String sno);

    Student selectStudentWithScsAndCourse(String sno);

    public Student loginStudentByName(String name);



    int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);
}